package com.zx.link.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.zx.link.entity.LinkType;
import com.zx.link.utils.DBUtil;

@Repository("linkTypeDao")
public class LinkTypeDao {
	
	@Autowired
	private DBUtil dbUtil;
	
	public List<LinkType> getAll(){
		List<LinkType> find = this.dbUtil.find(LinkType.class, "select * from link_type order by 3 asc");
		return find;
	}
}
